home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_usrdoc / YPBIND-3.3 / README.{__ < prev    next >
Text File  |  1999-09-17  |  4KB  |  115 lines

  1. How to set up your system as a NIS client:
  2.  
  3. 1. Set your NIS domain with domainname at boottime.
  4.  
  5. Example:
  6. if [ -r /etc/defaultdomain ] ; then
  7.     domainname `cat /etc/defaultdomain`
  8. fi
  9. You should create the file /etc/defaultdomain with the command
  10.     echo -n your_domain_name > /etc/defaultdomain
  11. Old versions of the domainname program could not deal with a \n at the
  12. end of /etc/defaultdomain and made it part of the domainname. This is
  13. fixed in this version. 
  14.  
  15. Please do _not_ confuse the NIS domainname (set with the domainname
  16. command, which uses setdomainname()) with the DNS domain name (set in
  17. /etc/resolv.conf). Some distributions falsely assume these are the
  18. same. This is wrong. Make shure the NIS domainname is the name of a
  19. domain served by your NIS server.
  20.  
  21. 2. Find a NIS server. 
  22. Here you have 2 possibilities. If your NIS server is in your local
  23. net, you can simply start ypbind. It will use broadcast to find a
  24. server. You can check for a NIS server with the command
  25.     rpcinfo -b 100004 2
  26.  
  27. With this release, you can enter the name of your NIS server
  28. to the file /etc/yp.conf. If /etc/yp.conf exists when ypbind is
  29. started, ypbind will search it for lines formed like
  30.     ypserver <Name_of_ypserver>
  31. ypbind then tests if the given servers are up and serve the NIS
  32. domain. If one of the servers responds, it will use it for all further
  33. NIS requests, else it will fallback to broadcast. This gives you the
  34. possibility to use a server behind a gateway. 
  35.  
  36. 3. Start ypbind
  37. The recommended way of starting ypbind is as follows:
  38.  
  39. if [ -d /var/yp ] ; then
  40.     /usr/sbin/ypbind ;    echo ypbind
  41. fi
  42.  
  43. Be sure to set the domainname before calling ypbind and to append
  44. +:*:0:0:::
  45. to /etc/passwd, and
  46. +:*:0:
  47. to /etc/group (this is for libc-4.5.26. Since this library is buggy
  48. w.r.t. NIS, please use libc-4.6.27).
  49. ATTENTION! Do not use this entry for libc 4.6.30 and above, it will prevent
  50. everyone from login, since the pw_passwd entry will get overwritten with the
  51. star. Use a line with a single + instead.
  52.  
  53.  
  54. --- BEGIN NOTES for libc-4.6.27 ---
  55.  
  56. If you are using libc-4.6.27 or above, you
  57. can just add a + to /etc/passwd or /etc/group to make all your NIS
  58. accounts available on your machine. It is possible to include oder
  59. exclude single users, too: just add +username or -username to
  60. /etc/passwd. You can even overwrite the passwd, username, directory
  61. and shell fields of the NIS entry, for example the entry:
  62.  
  63. +swen::::NIS Hacker::/bin/tcsh
  64.  
  65. would change the full name of swen to "NIS Hacker" and the shell to
  66. /bin/tcsh, but would leave the homedirectory to the value in the NIS
  67. entry.
  68.  
  69. NOTE: For libc-4.6.30 and above this will work for the general entry
  70. +::::::
  71. too, so don't use
  72. +:*:::::
  73. since it will overwrite the pw_passwd field on all NIS entries and
  74. prevent login.
  75.  
  76. libc-4.6.27 supports netgroup entries in /etc/passwd and /etc/group.
  77. So if you have a netgroup power_users, you can allow the members of
  78. this netgroup access to your machine with the line
  79.  
  80. +@power_users
  81.  
  82. in /etc/passwd.
  83.  
  84. Note, that the rcmd() routine supports netgroup entries in
  85. ~/.rhosts. So if you have a netgroup named hosts, you can have remote 
  86. access to your linux machine with the line
  87.  
  88. +@hosts
  89.  
  90. in ~/.rhosts (this is more secure than a single +, since this would
  91. allow access with your loginname from any machine in the world, and
  92. it is simpler than putting in every single hostname you want to
  93. rlogin from).
  94. --- END NOTES for libc-4.6.27 ---
  95.  
  96. Don't forget to create the directory /var/yp. Make sure the portmapper
  97. is running and the NIS domainname is set before ypbind gets started.
  98.  
  99. You can use NIS for your host map by adding "nis" to the order line of
  100. /etc/host.conf.
  101. Example:
  102.  
  103. order hosts nis bind
  104. multi on
  105.  
  106. This will look into /etc/hosts first, then ask nis and then the domain
  107. name server.
  108.  
  109. Feel free to correct any errors in the programs or documentation
  110. (including spelling and grammar!)
  111.  
  112. Comments, corrections, enhancements, patches, praise, postcards, money
  113. etc. to swen@uni-paderborn.de, flames to /dev/null.
  114.  
  115.